package com.graduate.after.mapper;

import com.graduate.after.bean.OrderInfo;
import com.graduate.after.bean.OrderLineInfo;
import com.graduate.after.bean.ShopCarInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ShopCarInfoMapper {

    ShopCarInfo shopCarInfoSelect(String userName, Long shopIid);

    void shopCarInfoUpdate(Long id, Integer shopCount);

    void shopCarInfoInsert(ShopCarInfo shopCarInfo);

    List<ShopCarInfo> shopCarAllSelect(String userName);

    void orderInfoInsert(OrderInfo orderInfo);

    void orderLineInfoInsert(OrderLineInfo orderLineInfo);

    void deleteShopCarSingleInfo(Long shopoIid);

    void orderInfoUpdate(String status, Long id);

    List<OrderInfo> orderAllSelect(String userName, String type);

    List<OrderLineInfo> orderLineAllSelect(Long id);

    OrderInfo selectOrderById(Long id);

    OrderLineInfo selectOrderLineById(Long id);

    void orderInfoUpdateMax(Double totalMoney, Integer categoryNum, Long id);

    void orderLineInfoUpdate(Long orderId,  Long id);

}
